import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

import { resolve } from "path";
export default defineConfig({
  plugins: [vue()],
  // ↓解析配置
  resolve: {
    // ↓路径别名
    alias: {
      "@": resolve(__dirname, "./src"),
    },
  },
  server: {
    // ↓自动打开浏览器
    open: true,
    // ↓端口
    port: 80,
    host: "0.0.0.0",
  },
});
